package org.jarraiders.musiclibrary.client;

import java.util.ArrayList;

import org.jarraiders.musiclibrary.shared.domain.AlbumDTO;
import org.jarraiders.musiclibrary.shared.domain.TrackDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("tracksService")
public interface TracksService extends RemoteService{

	TrackDTO addTrack(TrackDTO track);

	boolean deleteTrack(String id);

	TrackDTO getTrack(String id);

	ArrayList<TrackDTO> getTrackDetails();

	TrackDTO updateTrack(TrackDTO track);
	
	ArrayList<TrackDTO> searchTrack(String searchText);


}
